<template>
  <div id="goodsDetail" class="pdt30" style="text-align: center">
    <p v-html="detailHtml"></p>
  </div>
</template>

<script>
export default {
  name: "goodsDetail",
  components: {},
  props: ['id'],
  data() {
    return {
      detailHtml:[]
    }
  },
  mounted() {
    this.axios.get(
        '/api/detail'
    ).then((res)=>{
      let detailHtml=res.data.detailHtml
      this.detailHtml=detailHtml
    }).catch((err)=>{
      this.$message.error(err)
    })
  }
}
</script>

<style scoped>

</style>
